package edu.spec.lyq.week02;

public class Sum {
    public static void main(String args[]){
        int x=2;
        long sum=1,y=1;
        do{
            y = x*y;
            sum +=y;
            x++;
        }
        while(x <= 100);
        System.out.println("sum="+sum);
    }
}
